package com.woniuxy.light_smart.mapper;

import com.woniuxy.light_smart.dto.AreaDto;
import com.woniuxy.light_smart.entity.ApplicationRole;
import com.woniuxy.light_smart.entity.Area;
import com.woniuxy.light_smart.entity.Role;
import com.woniuxy.light_smart.vo.AreaCountVo;
import com.woniuxy.light_smart.vo.AreaRoleVo;
import com.woniuxy.light_smart.vo.AreaVo;

import java.util.List;

/**
* @author wts
* @description 针对表【area】的数据库操作Mapper
* @createDate 2022-12-07 11:35:22
* @Entity com.woniuxy.light_smart.entity.Area
*/
public interface AreaMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    List<Area> selectAll2(AreaDto areaDto);


    /**
     * 不带参数查全部
     * @return
     */
    List<Area> getAll();

    List<AreaVo> selectAllUser();

    List<Role> selectAllRole();

    List<AreaCountVo> selectAllUserCount();

    List<Area> selectAllArea();
    List<Area> selectExportData(AreaDto area);


    List<AreaCountVo> selectAllOneRole(Integer userId, Integer areaId);

    List<AreaVo> selectAllOne(Integer userId, Integer areaId);

//    List<ApplicationRole> selectAppRoleOne(Integer userId, Integer areaId);
}
